<?php
session_start();
$username=$_SESSION['username'];

if(!isset($_SESSION['username'])){
    header("Location:index.php"); //重新定向到其他页面
    exit();
}
?>
<!DOCTYPE html>
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>订阅号助手</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
    <style>
      body {
        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
      }
    </style>
    <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">


    <link rel="stylesheet" href="bootstraptable/bootstrap-table.css">
 
  </head>

  <body>

    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="brand" href="#">订阅号助手</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li><a href="index2.php">首页</a></li>
              <li><a href="wxfan.php">粉丝管理</a></li>
              <li><a href="wxmenu.php">自定义菜单</a></li>
              <li><a href="wxmessge.php">图文消息</a></li>
              <li><a href="wximages.php">图片素材</a></li>
              <li><a href="wxfun.php">数据同步</a></li>
              <li><a href="wxsetting.php">公众号配置</a></li>
              <li class="active"><a href="wxcate.php">类别管理</a></li>
              <li><a href="setpwd.php">修改密码</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container">
      <div class="page-header">
          <p class="panel-title">欢迎您的光临：<?php echo $_SESSION['username'] ?></p>
      </div> 
      <div>
        <table id="table"></table>                                        
      </div>


    </div> <!-- /container -->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="jquery.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>
    <script src="bootstraptable/bootstrap-table.js"></script>
    <script src="bootstraptable/locale/bootstrap-table-zh-CN.js"></script>

  
<script type="text/javascript">
  
  $(document).ready(function(){
    var $table=$('#table');
    $table.bootstrapTable({
        url:'getAllData05.php',
        striped: true,
        pagination: true,
        columns: [{
            field: 'state',
            radio: true,

        }, {
            field: 'id',
            title: 'id'
        }, {
            field: 'name',
            title: '类别名称'
        }]
    });
   
  });
</script>



</body>
</html>

